<div>1</div>
<script>
    let div1 = document.getElementsByTagName('div')[0];
    div1.innerText = '111'
    let div2 = document.getElementsByTagName('div')[1];
    div12.innerText = '222'
</script>
<div>2</div>
